// 一个普通的子组件，用来演示父传子
import React, {Component} from 'react';
export default class ChildA extends React.Component {
  constructor() {
    super()
    this.state = {
      
    }
  }
  render() {
    return (<div>
      <mark>{this.props.info}</mark>
      {/* 父传子，只读属性，不能修改！Cannot assign to read only property */}
      <p>{this.props.num}</p>
    </div>)
  }
}